package org.jeecg.modules.maintain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: i_manual
 * @Author: jeecg-boot
 * @Date: 2024-05-24
 * @Version: V1.0
 */
@Data
@TableName("i_manual")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "i_manual对象", description = "i_manual")
public class IManual implements Serializable {
    private static final long serialVersionUID = 1L;

    /**id*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private Integer id;
    /**名称*/
    @Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
    private String name;
    /**类型或者是品牌*/
    @Excel(name = "类型 0手册 1视频", width = 15)
    @ApiModelProperty(value = "类型 0手册 1视频")
    private String type;
    /**描述*/
    @Excel(name = "描述", width = 15)
    @ApiModelProperty(value = "描述")
    private String description;
    /**文件路径*/
    @Excel(name = "文件路径", width = 15)
    @ApiModelProperty(value = "文件路径")
    private String path;
    /**缩略图路径*/
    @Excel(name = "缩略图路径", width = 15)
    @ApiModelProperty(value = "缩略图路径")
    private String thumbPath;
    /**单价*/
    @Excel(name = "单价", width = 15)
    @ApiModelProperty(value = "单价")
    private BigDecimal unitPrice;
    /**0免费 1收费*/
    @Excel(name = "0免费 1收费", width = 15)
    @ApiModelProperty(value = "0免费 1收费")
    private String pay;
    /**
     *品牌id
     */
    private Long brandId;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private Integer createBy;
    /**创建时间*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**修改人*/
    @ApiModelProperty(value = "修改人")
    private Integer updateBy;
    /**修改时间*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
    /**删除标记 0正常 1删除*/
    @Excel(name = "删除标记 0正常 1删除", width = 15)
    @ApiModelProperty(value = "删除标记 0正常 1删除")
    @TableLogic
    private String delFlag;

    @TableField(exist = false)
    private String brandName;

    @TableField(exist = false)
    private String brandLogo;

}
